import { request } from './request'

export function test() {
  return request({
    url: '/test',
    method: 'get',
  })
}

//查询中国指数
export function getChinaIndexData(current_page: any, page_size: any) {
  return request({
    url: '/china-index/page',
    method: 'get',
    params: {
      page: current_page,
      page_size: page_size,
    },
  })
}

//获取分页的新股上市信息接口
export function getNewListingInformation(current_page: any, page_size: any) {
  return request({
    url: '/new-stocks/page',
    method: 'get',
    params: {
      page: current_page,
      page_size: page_size,
    },
  })
}

//获取证券快讯信息接口
export function getStockNews() {
  return request({
    url: '/stock-news',
    method: 'get',
  })
}

//获取港股通资金流信息接口
export function getHKConnectFunds() {
  return request({
    url: '/hk-connect-funds',
    method: 'get',
  })
}

//获取板块资金流信息接口
export function getSectorFunds() {
  return request({
    url: '/sector-funds',
    method: 'get',
  })
}

export function getStockNews1() {
  return request({
    url: '/stock-news',
    method: 'get',
  })
}
